﻿using com.iot.core.annotation;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Xml.Linq;

namespace com.iot.core.data.entity
{
    [Schema(Name = "用户表", Description = "")]     
    public class HtUser : BaseEntity, ISoftDeletedEntity
    {





        [Comment("账号")]
        [Schema(Name = "账号", Description = "")]
        [MaxLength(50)]
        public string Ename { get; set; } = "";


        [Comment("姓名")]
        [Schema(Name = "姓名", Description = "")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(50)]
        public string Name { get; set; } = "";


        [Comment("密码")]
        [Schema(Name = "密码", Description = "")]
        [MaxLength(50)]
        public string Pwd { get; set; } = "";


        [Comment("密码")]
        [Schema(Name = "密码", Description = "")]
        [MaxLength(50)]
        public string Czpwd { get; set; } = "";


        [Comment("手机号")]
        [Schema(Name = "手机号", Description = "")]
        [MaxLength(50)]
        public string Mobile { get; set; } = "";


        [Comment("其他电话")]
        [Schema(Name = "其他电话", Description = "")]
        [MaxLength(50)]
        public string Phone { get; set; } = "";


        [Comment("性别")]
        [Schema(Name = "性别", Description = "男、女")]
        [MaxLength(10)]
        public string Sex { get; set; } = "";


        [Comment("照片")]
        [Schema(Name = "照片", Description = "")]
        public string Url { get; set; } = "";


        [Comment("职务")]
        [Schema(Name = "职务", Description = "")]
        [MaxLength(50)]
        public string Zw { get; set; } = "";


        [Comment("出生日期")]
        [Schema(Name = "出生日期", Description = "")]
        public DateTime Birthday { get; set; }


        [Comment("住址")]
        [Schema(Name = "住址", Description = "")]
        [MaxLength(100)]
        public string Address { get; set; } = "";


        [Comment("邮箱")]
        [Schema(Name = "邮箱", Description = "")]
        [MaxLength(100)]
        public string Email { get; set; } = "";


        [Comment("身份证号")]
        [Schema(Name = "身份证号", Description = "")]
        [MaxLength(50)]
        public string IdCode { get; set; } = "";


        [Comment("备注")]
        [Schema(Name = "备注", Description = "")]
        public string Memo { get; set; } = "";


        [Comment("区域编号")]
        [Schema(Name = "区域编号", Description = "")]
        public long HtareaId { get; set; }


        [Comment("创建日期")]
        [Schema(Name = "创建日期", Description = "")]
        public DateTime CrtDt { get; set; }


        [Comment("创建人编号")]
        [Schema(Name = "创建人编号", Description = "")]
        public long CrtUid { get; set; }


        [Comment("机构编号")]
        [Schema(Name = "机构编号", Description = "")]
        public long CrtDid { get; set; }


        [Comment("修改日期")]
        [Schema(Name = "修改日期", Description = "")]
        public DateTime EdtDt { get; set; }


        [Comment("修改人编号")]
        [Schema(Name = "修改人编号", Description = "")]
        public long EdtUid { get; set; }


        [Comment("Gid")]
        [Schema(Name = "Gid", Description = "")]
        public Guid Gid { get; set; }


        [Comment("删除标志")]
        [Schema(Name = "删除标志", Description = "")]
        public bool Deleted { get; set; }
    }
}
